#pragma once

#include <qobject.h>

class LicenseManager final : QObject {
    Q_OBJECT
public:
    static bool verifyLicense();
private:
    static bool decryptAes(const QByteArray& encryptedData, const QByteArray& key, QByteArray& decrypted);
    static bool readLicense(QByteArray& encryptedData, QByteArray& key);
    static bool isCurrentDateInRange(const QString& startDateStr, const QString& endDateStr);
    static void showError(const QString& message);
};